/*
 * Aesthetic element, needed to help manage layout.
 * This wouldn't be necessary on a desktop application.
 */

#ifndef LEFTSIDEINNERBORDER_HPP
#define LEFTSIDEINNERBORDER_HPP

#include <Wt/WContainerWidget>
#include <Wt/WCssStyleSheet>
#include "HorizontalSplitter.hpp"
#include <Wt/WVBoxLayout>

class LeftSideInnerBorder : public Wt::WContainerWidget
{
    //TODO: Move to common CSS area:
    class Style : public Wt::WCssTextRule
    {
    public:
        Style()
                :
            Wt::WCssTextRule(".style1",
//                              "border-color:     blue;"
//                              "border-width:     medium;"
//                              "border-style:     groove;"
                             "display:          block;"
                             "overflow:         hidden;"
                             "position:         absolute;"
                             "left:             2em;"
                             "right:            2em;"
                             "top:              2em;"
                             "bottom:           2em;")

            {}
    };
    
    // LeftSideInnerBorder contains a HorizontalSplitter; it's only child.
    HorizontalSplitter* horizontal_splitter;
    
public:
    LeftSideInnerBorder();
};

#endif //LEFTSIDEINNERBORDER_HPP
